Cypress Semiconductor /psoc63 /SCB0 /I2C_M_CMD

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as I2C_M_CMD

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (M_START)M_START 0 (M_START_ON_IDLE)M_START_ON_IDLE 0 (M_ACK)M_ACK 0 (M_NACK)M_NACK 0 (M_STOP)M_STOP

Description

I2C master command

Fields

M_START

When ‘1’, transmit a START or REPEATED START. Whether a START or REPEATED START is transmitted depends on the state of the master state machine. A START is only transmitted when the master state machine is in the default state. A REPEATED START is transmitted when the master state machine is not in the default state, but is working on an ongoing transaction. The REPEATED START can only be transmitted after a NACK or ACK has been received for a transmitted data element or after a NACK has been transmitted for a received data element. When this action is performed, the hardware sets this field to ‘0’.

M_START_ON_IDLE

When ‘1’, transmit a START as soon as the bus is idle (I2C_STATUS.BUS_BUSY is ‘0’, note that BUSY has a default value of ‘0’). For bus idle detection the hardware relies on STOP detection. As a result, bus idle detection is only functional after at least one I2C bus transfer has been detected on the bus (default/reset value of BUSY is ‘0’) . A START is only transmitted when the master state machine is in the default state. When this action is performed, the hardware sets this field to ‘0’.

M_ACK

When ‘1’, attempt to transmit an acknowledgement (ACK). When this action is performed, the hardware sets this field to ‘0’.

M_NACK

When ‘1’, attempt to transmit a negative acknowledgement (NACK). When this action is performed, the hardware sets this field to ‘0’.

M_STOP

When ‘1’, attempt to transmit a STOP. When this action is performed, the hardware sets this field to ‘0’. I2C_M_CMD.M_START has a higher priority than this command: in situations where both a STOP and a REPEATED START could be transmitted, M_START takes precedence over M_STOP.

Links

() ()